home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-11-08 | 1.6 KB | 42 lines | [TEXT/KAHL] |
- //------------------------- © 1991-1995 by James G. Stout --------------------------
- // File : cdefGBox.h
- // Date : September 1,1991
- // Author : Jim Stout
- // :
- // Purpose : "Group Box" CDEF
- // : A very simple CDEF that draws a titled box. It supports
- // : 3 varCodes - see below
- // :
- // : use procID : 100 * 16 + varCode
- // : when calling NewControl() or in your resource template.
- //----------------------------------------------------------------------------------
-
- //----------------------------------------------------------------------------------
- // variation codes
- //----------------------------------------------------------------------------------
-
- #define grayLine 0x0001 // draw box with a dotted line (gray pattern)
- #define ctl3D 0x0002 // draw a 3D box with overlapping white & black boxes
- #define insetBox 0x0004 // draw a 3D box with white & gray
- #ifndef useWindFont
- #define useWindFont 0x0008
- #endif
-
- //----------------------------------------------------------------------------------
- // CDEF private data
- //----------------------------------------------------------------------------------
- typedef struct {
- Rect titleRect; // title rect to clear so font changes are correct
- short realHt; // true height of the control
- short txFont;
- short txSize;
- }gbData,**gbDataHandle;
-
- //----------------------------------------------------------------------------------
- // Function prototypes
- //----------------------------------------------------------------------------------
-
- void doDraw (ControlHandle hCtl, short varCode);
- pascal void drawControl (short depth, short dFlags,
- GDHandle theDevice, long userData);
-